#include <stdio.h>

int main()
{
    int data = 0xff010102;
    char*p = (char*)&data;
    if(*p == 0x02)
    {
        printf("小端\n");
    }
    else
    {
        printf("大端\n");
    }
}